<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
 * Copyright (c) 2008 Sun Microsystems, Inc. 
 * All rights reserved.
 * Use is subject to license terms.
-->
<html>
<head>
<title>Working with JavaFX Projects</title>
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
</head>
<body>
    <a name="top"></a>
    <h2>Working with JavaFX Projects<a name="top"></a></h2>

The following table shows how to work with JavaFX projects. 
<table border="0" cellpadding="0" cellspacing="0" summary="The left column contains each
   process step. The right column contains detail information to accomplish that process.">
  <tr valign="top"> 
    <td align="center"><img src="../images/circle1.gif" alt="Number one"><br>
      <b>Create and configure project</b></td>
    <td> 
      <ol>
        <li>Create the JavaFX project by choosing File &gt; New Project (Ctrl-Shift-N) in the main menu and select the JavaFX Script Application template.</li>
        <li>Follow the steps in the remainder of the wizard.</li>
       <li><a href="../compile/javafx_comp_classpath.html">Configure the classpath</a> 
          for the project. </li>
      </ol>
    </td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <hr align="center" width="80%">
    </td>
  </tr>
  <tr valign="top"> 
    <td align="center"> 
      <p><img src="../images/circle2.gif" alt="Number two"><br>
        <b>Build project</b> </p>
    </td>
    <td> 
      <ul>
        <li>Choose Run &gt; <a href="../compile/javafx_comp_project.html">Build Main Project</a> 
          (F11) from the main menu or right-click  the project's node in the Projects window and choose Build Project.</li>
      </ul>
    </td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <hr align="center" width="80%">
    </td>
  </tr>
  <tr valign="top"> 
    <td align="center"> <img src="../images/circle3.gif" alt="Number three"><br>
      <b>Run project</b> </td>
    <td> 
      <ol>
        <li>If necessary, <a href="../run/javafx_run_args.html">set the main class and 
          arguments</a> for the project. </li>
        <li>Choose Run &gt; <a href="../run/javafx_run_app.html">Run Main Project</a> from the main menu or 
          right-click the project's node in the Projects window and choose Run Project.</li>
      </ol>
    </td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <hr align="center" width="80%">
    </td>
  </tr>
  <tr valign="top"> 
    <td align="center"> <img src="../images/circle4.gif" alt="Number four" width="21" height="21"><br>
      <b>Debug Java code in a JavaFX project</b> </td>
    <td> 
	<!-- <p><b>Note:</b> Currently, only Java code can be debugged within a JavaFX project.</p> -->
      <ol>
        <li>Set <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/java/helpset/docs/debug/breakpoint_setting.html">breakpoints</a> 
			or <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/java/helpset/docs/debug/debug_new_watch.html">watches</a> in your code.</li>
        <li>Choose Run &gt; <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/java/helpset/docs/debug/debug_local.html">Debug Main Project</a> 
          from the main menu or right-click the project's node in the Projects window and choose Debug Project. You can also <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/java/helpset/docs/debug/debug_remote.html">attach 
          the debugger to a running process</a>.</li>
        <li><a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/java/helpset/docs/debug/debug_step.html">Step through the program execution</a>.</li>
        <li>Choose Run &gt; <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/java/helpset/docs/debug/debug_finish.html">Finish Debugging 
          Session</a> (Shift-F5) from the main menu when you are finished debugging.</li>
      </ol>
    </td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <hr align="center" width="80%">
    </td>
  </tr>
    <tr valign="top"> 
    <td align="center"> <img src="../images/circle5.gif" alt="Number five" width="21" height="21"><br>
      <b>Profile project</b> </td>
    <td> 
	<!-- <p><b>Note:</b> Currently, profiling of a JavaFX project can be done at the project level only.</p> -->
      <li>Choose Profile &gt; <a href="../profiling/javafx_profile_about.html">Profile Main Project</a> 
          from the main menu or right-click the project node in the Projects window and select Profile. </td>
  </tr>
</table>

<hr>
<small><a href="../credits.html">Legal Notices</a></small> 
<table cellpadding="50" border="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
